using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace XnaDevRu.ContentBuilder.Framework
{
	/// <summary>
	/// Represents content processors' conversion to string collection.
	/// </summary>
    public class ProcessorConverter : StringConverter
    {
		/// <summary>
		/// 
		/// </summary>
		/// <param name="context"></param>
		/// <returns></returns>
        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            //true means show a combobox
            return true;
        }

		/// <summary>
		/// 
		/// </summary>
		/// <param name="context"></param>
		/// <returns></returns>
        public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
        {
            //true will limit to list. false will show the list, 
            //but allow free-form entry
            return true;
        }

		/// <summary>
		/// 
		/// </summary>
		/// <param name="context"></param>
		/// <returns></returns>
        public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            return new StandardValuesCollection(PipelineAssemblyManager.ProcessorNameCollection);
        }
    }
}
